#include "Sqstack.h"

int main()
{
    char exp[100];
    int chice;
    cout << "请选择你要解决那个问题！" << endl;
    cout << "1.十进制转换" << '\t' << "2.括号匹配" << '\t' << "3.退出" << endl;
    cin >> chice;

    while (chice)
    {
        switch (chice)
        {
        case 1:
            shuzhizhuanhuan();
            break;
        case 2:
            cout << "请输入一个括号字符串：";
            cin.ignore(); // 忽略之前输入的回车符
            cin.getline(exp, 100);
            kuohaomatch(exp);
            break;
        case 3:
            return 0;
        default:
            cout << "请重新输入" << endl;
            break;
        }
        cout << "\n请选择你要解决那个问题！" << endl;
        cout << "1.十进制转换" << '\t' << "2.括号匹配" << '\t' << "3.退出" << endl;
        cin >> chice;
    }
    system("pause");
    return 0;
}